#include <stdio.h>

int main()
{
	int a,count,i=-1;
	
	do
	{
		scanf("%d", &a);
		count += a;
		getchar();
		i++;
	}while (getchar() != '\n' );
	printf("%d", count/i);
	
	return 0;
}
